<html>
    <head>
        <title>Gestione Noleggi</title>
	<meta name="author" content="Mattia Coccato">

	<link rel="stylesheet" href="css/amm_gestione_noleggi.css" type="text/css" media="all" />

	<script type="text/javascript" src="jQuery/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="js/amm_gestione_noleggi.js"></script>

		<script type="text/javascript">
			<% if((session.getAttribute("utente")==null) || !((Boolean)(session.getAttribute("amministrativo")))) out.print("window.location=\"index.jsp\";"); %>
		</script>

    </head>
    <body onload="">
	<div id="main-div">
		<fieldset id="noleggiAttuali">
			<legend>Noleggi inseriti:</legend>
			<table id="noleggiTable">
				<tr><th>Inizio</th><th>Fine</th><th>Prezzo</th><th>Fornitore</th><th>2D</th><th>3D</th></tr>
				<jsp:include page="../admin/get-noleggi">
					<jsp:param name="codiceFilm" value='<%=request.getParameter("codiceFilm") %>' />
				</jsp:include>
			</table>
		</fieldset>
		<fieldset id="datiNoleggio">
			<legend>Dati del noleggio</legend>
			<form id="form-core" action="" onsubmit="return submitForm()">
				<input type="hidden" id="codiceFilm" name="codiceFilm" value='<%=request.getParameter("codiceFilm") %>' ></input>
				<input type="hidden" id="isNuovo" name="isNuovo" value="true" />
				<table class="form-table">
					<tr>
						<td><label class="etichettaCampi" for="dataInizio">Data di inizio:</label></td>
						<td><input type="date" class="campoDiTesto" name="dataInizio" id="dataInizio"></input> </td>
					</tr>
					<tr>
						<td><label class="etichettaCampi" for="dataFine">Data di fine:</label></td>
						<td><input type="date" class="campoDiTesto" name="dataFine" id="dataFine"></input> </td>
					</tr>
					<tr>
						<td><label class="etichettaCampi" for="durataInSala">Prezzo:</label></td>
						<td><input type="text" class="campoDiTesto" name="prezzo" id="prezzo"></input> &euro;</td>
					</tr>
					<tr>
						<td><label class="etichettaCampi" for="fornitore">Fornitore:</label></td>
						<td>
							<select class="campoDiTesto" name="fornitore" id="fornitore">
								<jsp:include page="../admin/get-fornitori">
									<jsp:param name="format" value="select" />
								</jsp:include>
							</select>
						</td>
					</tr>
					<tr>
						<td><label class="etichettaCampi">Opzioni:</label></td>
						<td><input type="checkbox" class="campoDiTesto" name="IsIn2D" id="IsIn2D"></input>
							<label class="etichetteCheckbox" for="IsIn2D">Proiezione in 2D abilitata</label></td>
					</tr>
					<tr>
						<td></td>
						<td><input type="checkbox" class="campoDiTesto" name="IsIn3D" id="IsIn3D"></input>
							<label class="etichetteCheckbox" for="IsIn3D">Proiezione in 3D abilitata</label></td>
					</tr>
					
				</table>
				<center>
					<input type="submit" value="Inserisci" id="submitButton" />
					<input type="button" id="annullaButton" value="Annulla Modifica" onclick="resetFormDettaglio();" />
				</center>
				
			</form>
		</fieldset>
		<div id="messaggi-utente"></div>
	</div>
    </body>
</html>
